package com.chengqj.factory.singlefactory;

/**
 * @program: pattern
 * @description: 饿汉式单例
 * @author: chengqj
 * @create: 2018-08-06 18:08
 **/
public class Hungry {
    private Hungry(){}
    private static final Hungry hungry = new Hungry();

    public static Hungry getInstance(){
        return  hungry;
    }
}
